home *** CD-ROM | disk | FTP | other *** search
Text File | 1991-03-06 | 1.2 KB | 30 lines | [TEXT/GEOL] |
- Item 6656060 21-Feb-91 16:15PST
-
- From: KNEPPER Knepper, Christopher
-
- To: D0317 Matrix Instr, D Miller,PRT
-
- cc: MACAPP.TECH$ MacApp Technical
-
- ------------------------------------------------------------------------------
-
- Sub: Re: TFloatWindow and Activate
-
- Kevin,
-
- ActivatePalette() will only activate the window's palette if that window is the
- front window. So, MAActivatePalette() can be used to fool ActivatePalette()
- into thinking that the given window is the front-most window. It is actually
- used to activate the palette for "non-front" windows (e.g. document windows
- behind floaters). The idea is to patch FrontWindow() so that it will return the
- window passed into MAActivatePalette(), thus fooling ActivatePalette() into
- thinking that the document window is the real front window, and therefore its
- palette should be activated.
-
- The problem you've encountered is that MAActivatePalette() may not be called
- everywhere that it should be called. You should try calling MAActivatePalette()
- on the document window whenever the window is selected or openend.
-
- -Chris
-
-